import request from '@/utils/request'


export function addPurchaseIncoming(data) {
    return request({
        url: '/purchaseIncoming/addPurchaseIncoming',
        method: 'post',
        data
    })
}

export function addTransferOrder(data) {
    return request({
        url: '/transferOrder/addTransferOrder',
        method: 'post',
        data
    })
}

export function audit(data) {
    return request({
        url: '/purchaseIncoming/audit',
        method: 'post',
        data
    })
}

export function deletePurchaseIncomingByID(data) {
    return request({
        url: '/purchaseIncoming/deletePurchaseIncomingByID',
        method: 'post',
        data
    })
}

export function getPurchaseIncoming(data) {
    return request({
        url: '/purchaseIncoming/getPurchaseIncoming',
        method: 'get',
        params: data
    })
}

export function getTransferOrder(data) {
    return request({
        url: '/transferOrder/getTransferOrder',
        method: 'get',
        params: data
    })
}

export function getOtherIncomingGoodsOrder(data) {
    return request({
        url: '/otherIncomingGoodsOrder/getOtherIncomingGoodsOrder',
        method: 'get',
        params: data
    })
}

export function getOtherOutgoingGoodsOrder(data) {
    return request({
        url: '/otherOutgoingGoodsOrder/getOtherOutgoingGoodsOrder',
        method: 'get',
        params: data
    })
}




export function getPurchaseIncomingByID(data) {
    return request({
        url: '/purchaseIncoming/getPurchaseIncomingByID',
        method: 'get',
        params: data
    })
}



export function generatePurchaseOrderNumber(data) {
    return request({
        url: '/purchaseIncoming/generatePurchaseOrderNumber',
        method: 'get',
        params: data
    })
}

